﻿using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NetCoreMvcTest.Utils
{
    public static class CustomExtension
    {
        /// <summary>
        /// 自定义注入内容
        /// </summary>
        /// <param name="services"></param>
        public static void AddInject(this IServiceCollection services)
        {
            services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
        }
    }
}
